package de.openlaboratory.elib.model.system;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;

public class UserProp implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/** identifier field */
    private Long id;

    /** persistent field */
    private Long userId;

    /** persistent field */
    private String propName;

    /** nullable persistent field */
    private String propValue;

    /** nullable persistent field */
    private String propValueDetails;

    /** full constructor */
    public UserProp(Long userId, String propName, String propValue, String propValueDetails) {
        this.setUserId(userId);
        this.propName = propName;
        this.propValue = propValue;
        this.propValueDetails = propValueDetails;
    }

    /** default constructor */
    public UserProp() {
    }

    /** minimal constructor */
    public UserProp(Long userId, String propName) {
        this.setUserId(userId);
        this.propName = propName;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }


    public String getPropName() {
        return this.propName;
    }

    public void setPropName(String propName) {
        this.propName = propName;
    }

    public String getPropValue() {
        return this.propValue;
    }

    public void setPropValue(String propValue) {
        this.propValue = propValue;
    }

    public String getPropValueDetails() {
        return this.propValueDetails;
    }

    public void setPropValueDetails(String propValueDetails) {
        this.propValueDetails = propValueDetails;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("id", getId())
            .toString();
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}
